<!DOCTYPE html>
<html class="theme-green">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>main.cpp - GCC Code Coverage Report</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="coverage.css"/>
  </head>

  <body>

    <header>
      <h1>GCC Code Coverage Report</h1>
      <hr/>
      <div class="summary">
<div>
  <table class="legend">
    <tr>
      <th scope="row">Directory:</th>
      <td>.</td>
    </tr>
    <tr>
      <th scope="row">File:</th>
      <td>main.cpp</td>
    </tr>
    <tr>
      <th scope="row">Date:</th>
      <td>2025-09-28 18:09:21+00:00</td>
    </tr>
  </table>
</div>
<div>
  <table class="coverage">
    <tr>
      <th></th>
      <th scope="col">Coverage</th>
      <th scope="col">Exec</th>
      <th scope="col">Excl</th>
      <th scope="col">Total</th>
    </tr>
    <tr>
      <th scope="row">Lines:</th>
      <td class="coverage-high">100.0%</td>
      <td class="coverage-high">8</td>
      <td class="coverage-high">0</td>
      <td class="coverage-high">8</td>
    </tr>
    <tr>
      <th scope="row">Functions:</th>
      <td class="coverage-high">100.0%</td>
      <td class="coverage-high">2</td>
      <td class="coverage-high">0</td>
      <td class="coverage-high">2</td>
    </tr>
    <tr>
      <th scope="row">Branches:</th>
      <td class="coverage-low">62.5%</td>
      <td class="coverage-low">5</td>
      <td class="coverage-low">0</td>
      <td class="coverage-low">8</td>
    </tr>
    <tr>
      <th scope="row">Decisions:</th>
      <td class="coverage-medium">75.0%</td>
      <td class="coverage-medium">3</td>
      <td class="coverage-medium">-</td>
      <td class="coverage-medium">4</td>
    </tr>
  </table>
</div>
      </div>
      <hr/>
    </header>
    <nav>
<details>
  <summary>List of functions</summary>
  <table class="listOfFunctions">
    <tr>
      <th>Function (Line)</th>
      <th>Call count</th>
      <th>Line coverage</th>
      <th>Branch coverage</th>
      <th>Block coverage</th>
    </tr>
    <tr><td><a href="#l5">Foo::work(int) (line 5)</a></td><td>called 1 time</td><td>100.0%</td><td>66.7%</td><td>70.0%</td></tr>
    <tr><td><a href="#l14">main (line 14)</a></td><td>called 1 time</td><td>100.0%</td><td>50.0%</td><td>100.0%</td></tr>
  </table>
</details>

    </nav>
    <main>
<div class="file-source">
  <table>
    <tr>
      <th align="right">Line</th>
      <th align="right">Branch</th>
      <th align="right">Decision</th>
      <th align="right">Exec</th>
      <th align="left" style="width: 100%;">Source</th>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l1" href="#l1">1</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;vector&gt;</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l2" href="#l2">2</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l3" href="#l3">3</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="k">class</span><span class="w"> </span><span class="nc">Foo</span><span class="w"> </span><span class="p">{</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l4" href="#l4">4</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="k">public</span><span class="o">:</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l5" href="#l5">5</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount coveredLine">1</td>
      <td class="src coveredLine"><span class="w">  </span><span class="kt">void</span><span class="w"> </span><span class="n">work</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">arg</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l6" href="#l6">6</a></td>
      <td class="linebranch">
        <details class="linebranchDetails">
          <summary class="linebranchSummary">1/2</summary>
          <div class="linebranchContents">
            <div class="takenBranch">&check; Branch 0 taken 1 time.</div>
            <div class="notTakenBranch">&cross; Branch 1 not taken.</div>
          </div>
        </details>
      </td>
      <td class="linedecision">
        <details class="linedecisionDetails">
          <summary class="linedecisionSummary">1/2</summary>
          <div class="linedecisionContents">
            <div class="takenDecision">&check; Decision 'true' taken 1 time.</div>
            <div class="notTakenDecision">&cross; Decision 'false' not taken.</div>
          </div>
        </details>
      </td>
      <td class="linecount partialCoveredLine">1</td>
      <td class="src partialCoveredLine"><span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">arg</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l7" href="#l7">7</a></td>
      <td class="linebranch">
        <details class="linebranchDetails">
          <summary class="linebranchSummary">1/2</summary>
          <div class="linebranchContents">
            <div class="takenBranch">&check; Branch 2 taken 1 time.</div>
            <div class="notTakenBranch">&cross; Branch 3 not taken.</div>
          </div>
        </details>
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount partialCoveredLine">2</td>
      <td class="src partialCoveredLine"><span class="w">      </span><span class="n">std</span><span class="o">::</span><span class="n">vector</span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span><span class="w"> </span><span class="n">tmp</span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">};</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l8" href="#l8">8</a></td>
      <td class="linebranch">
        <details class="linebranchDetails">
          <summary class="linebranchSummary">2/2</summary>
          <div class="linebranchContents">
            <div class="takenBranch">&check; Branch 3 taken 2 times.</div>
            <div class="takenBranch">&check; Branch 4 taken 1 time.</div>
          </div>
        </details>
      </td>
      <td class="linedecision">
        <details class="linedecisionDetails">
          <summary class="linedecisionSummary">2/2</summary>
          <div class="linedecisionContents">
            <div class="takenDecision">&check; Decision 'true' taken 2 times.</div>
            <div class="takenDecision">&check; Decision 'false' taken 1 time.</div>
          </div>
        </details>
      </td>
      <td class="linecount coveredLine">3</td>
      <td class="src coveredLine"><span class="w">      </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l9" href="#l9">9</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="w">      </span><span class="p">}</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l10" href="#l10">10</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="w">    </span><span class="p">}</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l11" href="#l11">11</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount coveredLine">1</td>
      <td class="src coveredLine"><span class="w">  </span><span class="p">}</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l12" href="#l12">12</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="p">};</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l13" href="#l13">13</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l14" href="#l14">14</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount coveredLine">1</td>
      <td class="src coveredLine"><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span><span class="w"> </span><span class="p">{</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l15" href="#l15">15</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="w">  </span><span class="n">Foo</span><span class="w"> </span><span class="n">foo</span><span class="p">;</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l16" href="#l16">16</a></td>
      <td class="linebranch">
        <details class="linebranchDetails">
          <summary class="linebranchSummary">1/2</summary>
          <div class="linebranchContents">
            <div class="takenBranch">&check; Branch 1 taken 1 time.</div>
            <div class="notTakenBranch">&cross; Branch 2 not taken.</div>
          </div>
        </details>
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount partialCoveredLine">1</td>
      <td class="src partialCoveredLine"><span class="w">  </span><span class="n">foo</span><span class="p">.</span><span class="n">work</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l17" href="#l17">17</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount coveredLine">1</td>
      <td class="src coveredLine"><span class="w">  </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l18" href="#l18">18</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "><span class="p">}</span></td>
    </tr>
    <tr class="source-line">
      <td class="lineno"><a id="l19" href="#l19">19</a></td>
      <td class="linebranch">
      </td>
      <td class="linedecision">
      </td>
      <td class="linecount "></td>
      <td class="src "></td>
    </tr>
  </table>
</div>
      <hr/>
    </main>
    <footer>
      Generated by: <a href="http://gcovr.com/en/main">GCOVR (Version 8.4+main)</a>
    </footer>
  </body>
</html>
